package com.zp.base.service;

import com.zp.base.entity.bo.PriceListBo;
import com.zp.base.entity.vo.PriceListVo;
import com.zp.common.myBatis.core.page.PageQuery;
import com.zp.common.myBatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 价表Service接口
 *
 * @author zhang peng
 * @date 2023-01-05
 */
public interface IPriceListService {

    /**
     * 查询价表
     */
    PriceListVo queryById (String priceId);

    /**
     * 查询价表列表(分页)
     */
    TableDataInfo<PriceListVo> queryPageList (PriceListBo bo, PageQuery pageQuery);

    /**
     * 查询价表列表(不分页)
     */
    List<PriceListVo> queryList (PriceListBo bo);

    /**
     * 修改价表
     */
    Boolean insertByBo (PriceListBo bo);

    /**
     * 修改价表
     */
    Boolean updateByBo (PriceListBo bo);

    /**
     * 校验并批量删除价表信息
     */
    Boolean deleteWithValidByIds (Collection<String> ids, Boolean isValid);

    /**
     * 停价
     *
     * @param priceId
     * @return
     */
    Boolean stopPrice (String priceId);

    /**
     * 调价
     *
     * @param bo
     * @return
     */
    Boolean priceAdjustment (PriceListBo bo);

    /**
     * 启用
     *
     * @param bo
     * @return
     */
    Boolean priceEnable (PriceListBo bo);

    /**
     * 当前价表自动补全
     *
     * @param bo
     * @return
     */
    List<PriceListVo> getCurrentPriceList (PriceListBo bo);

    /**
     * 获取诊疗项目已对照的价表
     *
     * @param bo
     * @return
     */
    List<PriceListVo> selectContrastExist (PriceListBo bo);
}
